package com.loeng.module.infra.controller.admin.config.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * 参数配置新增/修改 Request VO
 * @author  loeng zhuo
 */
@Schema(description = "管理后台 - 参数配置新增/修改 Request VO")
@Data
public class ConfigSaveReqVO {

    @Schema(description = "参数主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "24212")
    private Long id;

    @Schema(description = "参数分组", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "参数分组不能为空")
    private String category;

    @Schema(description = "参数类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @NotNull(message = "参数类型不能为空")
    private Integer type;

    @Schema(description = "参数名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "李四")
    @NotEmpty(message = "参数名称不能为空")
    private String name;

    @Schema(description = "参数键名", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "参数键名不能为空")
    private String key;

    @Schema(description = "参数键值", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "参数键值不能为空")
    private String value;

    @Schema(description = "是否可见", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "是否可见不能为空")
    private Boolean visible;

    @Schema(description = "备注", example = "你说的对")
    private String remark;

}